<extend name="Public/base"/>

<block name="style">
<link href="__CSS__/jtbk.css" rel="stylesheet" type="text/css"/>
</block>
<block name="content">   
    <ul class="nav nav-tabs">
	   <li ><a href="{:U('Index/index')}"><i class="glyphicon glyphicon-home"></i>首页</a></li>
	   <li ><a href="{:U('Index/add')}">资料上传</a></li>
	   <!-- <li><a href="{:U('Index/addsubject')}">课程管理</a></li> -->
	   <li ><a href="{:U('Index/myupload','id='.$vo['id'])}" >我的上传情况</a><li>
	   <li class="active"><a href="{:U('Index/listsub','sid='.$subject['id'])}" >{$alist.title}</a><li>
   </ul>
	
    <div class="clearfix"></div>
   <!-- 备课资料详情面板 start --> 
   <div class="col-md-10">
    <div class="panel panel-info">
          <div class="panel-heading">
               <h3 class="panel-title">{$alist.subject}{$alist.grade}《{$alist.title}》 <span class="pull-right">上传时间：{$alist.update_time|date='Y-m-d',###}</span></h3>
          </div>
          <div class="panel-body">
          <div style="height:60px;margin-bottom:-30px;">
          <div class="pull-left">[{$alist.subject}]</div>
          <div class="pull-left">[{$alist.grade}]</div>          
          <div class="pull-left"><a href="#">[{$alist.title}]</a></div>
          <div class="pull-left">[{$alist.teacher}]</div>
          <eq name="alist.uid" value="$my['uid']">
          <a class="pull-right" href="{:U('Jtbk/Index/edit','id='.$alist['id'])}"><span style="color:#0088AA"><i class="glyphicon glyphicon-edit"></i>编辑</span></a>
          </eq>
          </div>
            <div class="clearfix"></div>
          <div class="controls">
              <textarea name="content" class="text input-large">{$alist.content}</textarea>
              {:hook('adminArticleEdit', array('name'=>'content','value'=>$data['content']))}
            </div>

           </div>
            <div class="panel-footer">
                  <div class="label label-info">{$alist.subject}</div>
                  <div class="label label-info">{$alist.grade}</div>
                  <div class="label label-info">{$alist.teacher}</div>
                  <div class="label label-info">{$alist.title}</div>
                  <div class="label label-info">{$alist.jx_time}</div>
            <div class="pull-right">
                 <span style="color:#0088AA"><i class="glyphicon glyphicon-file"></i>附件下载:</span>
                   <if condition="!$files">【暂无】</if>
                    <foreach name="files" item="vo" >                         
                          <a style="margin-left:15px" href="{:U('Jtbk/Index/download',array('fid'=>$vo['id']))}" ><span style="color:#0088AA"><i class="glyphicon glyphicon-save"></i>{$vo.cate}</span></a>
              </foreach>  
             </div>
             </div>
    </div>
           
           <div class="col-md-12 main_content"></div>
 </div> 
 <!--备课资料详情面板end -->
</block>

